"use strict";
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  devServer: {
    // 打包完成后自动打开网页
    open: true,
    proxy: {
      "^/dev-api": {
        target: "http://localhost:8000",
        pathRewrite: {
          "^/dev-api": "",
        },
        changeOrigin: true,
      },
    },
  },
  configureWebpack: {
    resolve: {
      alias: {
        "@": resolve("src"),
      },
    },
  },
};
